package edu.zqu.course.project.domain.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 课本
 * </p>
 *
 * @author 郭泽鹏
 * @since 2020-06-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Book对象", description="课程模块：课本")
public class Book implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "书本id")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "学校id")
    private Long collegeId;

    @ApiModelProperty(value = "书本名称")
    private String name;

    @ApiModelProperty(value = "书本英文名称")
    private String englishName;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "作者英文名")
    private String englishAuthor;

    @ApiModelProperty(value = "译者")
    private String translator;

    @ApiModelProperty(value = "简介")
    private String introduction;

    @ApiModelProperty(value = "课本的书号")
    private String isbn;

    @ApiModelProperty(value = "出版社id")
    private Integer pressId;

    @ApiModelProperty(value = "建议售价")
    private Float price;

    @ApiModelProperty(value = "教材性质id")
    private Integer materialPropertiesId;

    @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "操作者")
    private Long byWho;

    @ApiModelProperty(value = "本记录是否有效")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "历史版本")
    @Version
    private Long lastVersion;


}
